package com.longxiao.vo;

public class DwzResult<T> {

	private String statusCode;
	
	private String message;
	
	private String callbackType = "closeCurrent";
	
	private T obj;

	public DwzResult(String statusCode, String message) {
		super();
		this.statusCode = statusCode;
		this.message = message;
	}
	
	public static DwzResult<Void> success() {
		return new DwzResult<Void>("200", "处理完成");
	}
	
	public static DwzResult<Void> fail(String msg) {
		return new DwzResult<Void>("300", msg);
	}
	
	public T getObj() {
		return obj;
	}

	public void setObj(T obj) {
		this.obj = obj;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getCallbackType() {
		return callbackType;
	}

	public void setCallbackType(String callbackType) {
		this.callbackType = callbackType;
	}
}
